const route = [
  {
    path: '/acl',
    component: () => import('@/layout/index.vue'),
    name: 'Acl',
    meta: {
      title: '权限管理',
      icon: 'Lock',
      permission: 'Permission'
    },
    redirect: '/acl/user',
    children: [
      {
        path: '/permission/user',
        component: () => import('@/views/permissionManage/userManage/list.vue'),
        name: 'User',
        meta: {
          title: '用户管理',
          icon: 'User',
          hidden: false,
          permission: 'User'
        },
      },
      {
        path: '/permission/addUser',
        component: () => import('@/views/permissionManage/userManage/userForm.vue'),
        name: 'addUser',
        meta: {
          title: '新增用户',
          hidden: true,
          permission: 'AddUser'
        },
      },
      {
        path: '/permission/editUser',
        component: () => import('@/views/permissionManage/userManage/userForm.vue'),
        name: 'editUser',
        meta: {
          title: '编辑用户',
          hidden: true,
          permission: 'UpdateUser',
          icon: 'User',
        },
      },
      {
        path: '/permission/role',
        component: () => import('@/views/permissionManage/roleManage/list.vue'),
        name: 'Role',
        meta: {
          title: '角色管理',
          icon: 'UserFilled',
          hidden: false,
          permission: 'Role'
        },
      },
      {
        path: '/permission/permission',
        component: () => import('@/views/permissionManage/menuManage/list.vue'),
        name: 'Permission',
        meta: {
          title: '菜单管理',
          icon: 'Monitor',
          hidden: false,
          permission: 'Permission'
        },
      },
    ],
  }
]

export default route
